home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xpaint-2.1.1 / hash.h < prev    next >
C/C++ Source or Header  |  1995-05-03  |  1KB  |  26 lines

  1. /* +-------------------------------------------------------------------+ */
  2. /* | Copyright 1992, David Koblas.                                     | */
  3. /* |   Permission to use, copy, modify, and distribute this software   | */
  4. /* |   and its documentation for any purpose and without fee is hereby | */
  5. /* |   granted, provided that the above copyright notice appear in all | */
  6. /* |   copies and that both that copyright notice and this permission  | */
  7. /* |   notice appear in supporting documentation.  This software is    | */
  8. /* |   provided "as is" without express or implied warranty.           | */
  9. /* +-------------------------------------------------------------------+ */
  10.  
  11. #ifdef __STDC__
  12. void    *HashCreate(int (*cmp)(), void (*free)(), int nelem);
  13. void    HashDestroy(void *tbl);
  14. void    *HashFind(void *tbl, int value, void *val);
  15. int    HashAdd(void *tbl, int value, void *val);
  16. int     HashRemove(void *tbl, int value, void *elem);
  17. int     HashAll(void *tbl, int (*func)(void *));
  18. #else
  19. void    *HashCreate();
  20. void    HashDestroy();
  21. void    *HashFind();
  22. int    HashAdd();
  23. int     HashRemove();
  24. int     HashAll();
  25. #endif
  26.